package com.reverie.util;

import com.qiniu.util.Auth;

public class QiNiuUtil {
    private static String accessKey = "s17LYu6Fhpzg062bjHvnOAYWMDWemaZqZ7ZVsLoc";
    private static String secretKey = "HiobiFRwQEvd_8FNwZlbTPy4yBa5_SCSvViSTMCx";
    private static String bucket = "fuyj";

    public static String getUploadToken(String key){
        Auth auth = Auth.create(accessKey, secretKey);
        return auth.uploadToken(bucket, key);
    }
}